package org.jbit.news.biz.impl;

import java.util.List;

import org.jbit.news.biz.NewsBiz;
import org.jbit.news.dao.NewsDao;
import org.jbit.news.dao.impl.NewsDaoImpl;
import org.jbit.news.entity.News;

public class NewsBizImpl implements NewsBiz{
	NewsDao newsDao=new NewsDaoImpl();
	public List<News> getAllnews() {
		return newsDao.getAllnews();
	}
	public int saveNews(News news) {
		return newsDao.saveNews(news);
	}
	public int delNews(News news) {
		return newsDao.delNews(news);
	}
	public List<News> getNewsByNid(int nid) {
		return newsDao.getNewsByNid(nid);
	}
	public int updateNewsByNid(News news,int nid) {
		return newsDao.updateNewsByNid(news,nid);
	}
	public List<News> getNewsByTopicTid(int ntid) {
		return newsDao.getNewsByTopicTid(ntid);
	}
	public int getTotalCountByNtid(int ntid) {
		return newsDao.getTotalCountByNtid(ntid);
	}
	public List<News> getPageNewsList(int ntid,int pageNo, int pageSize) {
		return newsDao.getPageNewsList(ntid,pageNo, pageSize);
	}
	public List<News> getAllNewsByTID(int tid) {
		// TODO Auto-generated method stub
		return newsDao.getAllNewsByTID(tid);
	}
	public int getNewsCountByTID(int tid) {
	
		return newsDao.getNewsCountByTID(tid);
	}
	public int getTotalCount() {
		// TODO Auto-generated method stub
		return newsDao.getTotalCount();
	}

}
